import request from '@/utils/request'

export function getReportFileList(id, reportId) {
  return request({
    url: '/report/common/getFileList/' + id + '/' + reportId,
    method: 'get'
  })
}

export function downloadReportFile(fileName, typeId, reportId) {
  return request({
    url: '/report/common/downloadFile',
    method: 'get',
    params: { fileName, typeId, reportId },
    responseType: 'blob',
    timeout: 60000
  })
}

export function deleteReportFile(val, typeId, reportId) {
  return request({
    url: '/report/common/deleteFile',
    method: 'delete',
    params: { fileName: val, typeId, reportId }
  })
}
